package com.lxmes.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lxmes.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.lxmes.common.core.domain.BaseEntity;

/**
 * 物料质量周期对象 nc_material_quality_cycle
 *
 * @author lx
 * @date 2023-06-01
 */
@ApiModel(value = "NcMaterialQualityCycle", description = "物料质量周期对象")
public class NcMaterialQualityCycle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @ApiModelProperty("${column.columnComment}")
    private Long id;

    /** 公司代码 */
    @Excel(name = "公司代码")
    @ApiModelProperty("公司代码")
    private String factoryCode;

    /** 公司名称 */
    @Excel(name = "公司名称")
    @ApiModelProperty("公司名称")
    private String factoryName;

    /** 供应商编码 */
    @Excel(name = "供应商编码")
    @ApiModelProperty("供应商编码")
    private String supplierCode;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    @ApiModelProperty("供应商名称")
    private String supplierName;

    /** 检材类型 */
    @Excel(name = "检材类型")
    @ApiModelProperty("检材类型")
    private String materialType;

    /** 物料子编号 */
    @Excel(name = "物料子编号")
    @ApiModelProperty("物料子编号")
    private String materialSubcode;

    /** 物料名称 */
    @Excel(name = "物料名称")
    @ApiModelProperty("物料名称")
    private String materialName;

    /** 物料类型 */
    @Excel(name = "物料类型")
    @ApiModelProperty("物料类型")
    private String materialCategory;

    /** 质检周期 */
    @Excel(name = "质检周期")
    @ApiModelProperty("质检周期")
    private String qualityCycle;

    /** 使用寿命 */
    @Excel(name = "使用寿命")
    @ApiModelProperty("使用寿命")
    private String serviceLife;

    /** 存储条件 */
    @Excel(name = "存储条件")
    @ApiModelProperty("存储条件")
    private String storageConditions;

    /** 存储位置 */
    @Excel(name = "存储位置")
    @ApiModelProperty("存储位置")
    private String storageLocation;

    /** 存储时长 */
    @Excel(name = "存储时长")
    @ApiModelProperty("存储时长")
    private String storageDuration;

    /** 审核人员 */
    @Excel(name = "审核人员")
    @ApiModelProperty("审核人员")
    private String auditor;

    /** 审核日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("审核日期")
    private Date auditDate;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setFactoryCode(String factoryCode)
    {
        this.factoryCode = factoryCode;
    }

    public String getFactoryCode()
    {
        return factoryCode;
    }
    public void setFactoryName(String factoryName)
    {
        this.factoryName = factoryName;
    }

    public String getFactoryName()
    {
        return factoryName;
    }
    public void setSupplierCode(String supplierCode)
    {
        this.supplierCode = supplierCode;
    }

    public String getSupplierCode()
    {
        return supplierCode;
    }
    public void setSupplierName(String supplierName)
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName()
    {
        return supplierName;
    }
    public void setMaterialType(String materialType)
    {
        this.materialType = materialType;
    }

    public String getMaterialType()
    {
        return materialType;
    }
    public void setMaterialSubcode(String materialSubcode)
    {
        this.materialSubcode = materialSubcode;
    }

    public String getMaterialSubcode()
    {
        return materialSubcode;
    }
    public void setMaterialName(String materialName)
    {
        this.materialName = materialName;
    }

    public String getMaterialName()
    {
        return materialName;
    }
    public void setMaterialCategory(String materialCategory)
    {
        this.materialCategory = materialCategory;
    }

    public String getMaterialCategory()
    {
        return materialCategory;
    }
    public void setQualityCycle(String qualityCycle)
    {
        this.qualityCycle = qualityCycle;
    }

    public String getQualityCycle()
    {
        return qualityCycle;
    }
    public void setServiceLife(String serviceLife)
    {
        this.serviceLife = serviceLife;
    }

    public String getServiceLife()
    {
        return serviceLife;
    }
    public void setStorageConditions(String storageConditions)
    {
        this.storageConditions = storageConditions;
    }

    public String getStorageConditions()
    {
        return storageConditions;
    }
    public void setStorageLocation(String storageLocation)
    {
        this.storageLocation = storageLocation;
    }

    public String getStorageLocation()
    {
        return storageLocation;
    }
    public void setStorageDuration(String storageDuration)
    {
        this.storageDuration = storageDuration;
    }

    public String getStorageDuration()
    {
        return storageDuration;
    }
    public void setAuditor(String auditor)
    {
        this.auditor = auditor;
    }

    public String getAuditor()
    {
        return auditor;
    }
    public void setAuditDate(Date auditDate)
    {
        this.auditDate = auditDate;
    }

    public Date getAuditDate()
    {
        return auditDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("factoryCode", getFactoryCode())
            .append("factoryName", getFactoryName())
            .append("supplierCode", getSupplierCode())
            .append("supplierName", getSupplierName())
            .append("materialType", getMaterialType())
            .append("materialSubcode", getMaterialSubcode())
            .append("materialName", getMaterialName())
            .append("materialCategory", getMaterialCategory())
            .append("qualityCycle", getQualityCycle())
            .append("serviceLife", getServiceLife())
            .append("storageConditions", getStorageConditions())
            .append("storageLocation", getStorageLocation())
            .append("storageDuration", getStorageDuration())
            .append("auditor", getAuditor())
            .append("auditDate", getAuditDate())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
